package com.hl.sfzy.mapper.content.publicwelfare;


import com.hl.sfzy.entity.content.PublicWelfare;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
@Mapper
public interface PublicWelfareMapper {

    List<PublicWelfare> getAll();


    PublicWelfare getById(Integer id);


    int add(PublicWelfare publicWelfare);

    int update(PublicWelfare publicWelfare);

    int delete(Integer id);

    List<PublicWelfare> search(@Param("keyword") String keyword, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);




}
